<?php
header('Content-Type:text/html;charset=utf-8');
session_start();
//if( isset($_SESSION['last_key']) ) header("Location: influence.php");
include_once( 'config.php' );
include_once( 'weibooauth.php' );



$o = new SaeTOAuth( WB_AKEY , WB_SKEY  );

$keys = $o->getRequestToken();
while($keys['oauth_token']=='') $keys = $o->getRequestToken();
$aurl = $o->getAuthorizeURL( $keys['oauth_token'] ,false , 'http://' . $_SERVER['HTTP_APPNAME'] . '.sinaapp.com/callback.php');

$_SESSION['keys'] = $keys;


?>
<div align='center'>
<h1>寻找微博引爆点 草根版</h1>
<p><a href="<?=$aurl?>"><img src="Sina48.png" alt="用新浪微博账号登陆" /></a></p>
<img src="image/explode.png" alt="转发查询" width="800" height="846"/>
<p><a href="<?=$aurl?>"><img src="Sina48.png" alt="用新浪微博账号登陆" /></a></p>
<p><img src="poweredby.png" alt="Powered by Sina AppEngine"/></p>
</div>
<script src="http://s96.cnzz.com/stat.php?id=3764558&web_id=3764558&show=pic" language="JavaScript"></script>